﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TImSdk
{
    /// <summary>
    /// 声音元素
    /// </summary>
    public class SoundElem : Elem
    {
        /// <summary>
        /// 语音文件路径,需要开发者自己先保存语言然后指定路径
        /// </summary>
        [JsonProperty("sound_elem_file_path")]       
        public string Sound_Elem_File_Path { get; set; }
        /// <summary>
        ///  语言数据文件大小，以秒为单位
        /// </summary>
        [JsonProperty("sound_elem_file_size")]
        public int Sound_Elem_File_Size { get; set; }
        /// <summary>
        /// 语音时长
        /// </summary>
        [JsonProperty("sound_elem_file_time")]
        public int Sound_Elem_File_Time { get; set; }
        /// <summary>
        /// 下载声音文件时的ID
        /// </summary>
        [JsonProperty("sound_elem_file_id")]
        public string Sound_Elem_File_Id { get; set; }
        /// <summary>
        /// 下载时用到的businessID
        /// </summary>
        [JsonProperty("sound_elem_business_id")]
        public int Sound_Elem_Business_Id { get; set; }
        /// <summary>
        /// 是否需要申请下载地址(0:到架平申请，1:到cos申请，2:不需要申请,直接拿url下载)
        /// </summary>
        [JsonProperty("sound_elem_download_flag")]
        public int Sound_Elem_Download_Flag { get; set; }
        /// <summary>
        ///  下载的URL
        /// </summary>
        [JsonProperty("sound_elem_url")]
        public string Sound_Elem_Url { get; set; }
        /// <summary>
        /// 任务ID
        /// </summary>
        [JsonProperty("sound_elem_task_id")]
        public string Sound_Elem_Task_Id { get; set; }
    }
}
